<template>
    <div>
        <div class="body" id="pay">

        </div>
    </div>
</template>
<script>
import axios from "axios";
export default {
  data() {
    return {
      ddbh: this.$route.query.ddbh
    };
  },
  created() {
    // 该方法用来更改tabbarshow的值 用来 展示、隐藏底部 tabbar (boolean为0 展示、boolean为1 隐藏)
    this.$store.dispatch("showTabbar", { boolean: "1" });
  },
  mounted() {
    this.getPayInfo();
  },
  methods: {
    goBack() {
      history.go(-1);
    },
    getPayInfo() {
      axios({
        method: "post",
        url: "/api/pc/o/return.htm",
        params: {
          zfbh: this.ddbh,
          method: 1
        }
      }).then(res => {
        console.log(res.data);
        $("#pay").html(res.data);
      });
    }
  }
};
</script>
<style scoped>

</style>
